package 剑指offer;

public class Offer10_JZ07 {

    public static void main(String[] args) {
        System.out.println(Fibonacci(4));
    }

    public static int Fibonacci(int n) {
        if (n <= 0) return 0;
        if (n==1 || n==2) return 1;
        return Fibonacci(n-1) + Fibonacci(n-2);
    }
}
